
export default {
  // mode: 'spa',
  mode: 'universal',
  env: {
    imgPath: 'http://119.23.244.149:3000'
  },
  head: {
    title: '[rabbit-pie]',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/images/icon/favicon.ico' },
      { rel: 'stylesheet', type: 'text/css', href: '//at.alicdn.com/t/font_1640599_wp1tr8ddc3b.css' }
    ]
  },
  /*
  ** Customize the progress-bar color
  */
  loading: { color: '#fff' },
  /*
  ** Global CSS
  */
  css: [
    'element-ui/lib/theme-chalk/reset.css',
    'element-ui/lib/theme-chalk/index.css',
    '@/assets/styles/reset.css',
    '@/assets/styles/public.css',
    '@/assets/styles/variable.css',
    '@/assets/styles/animation.css',
  ],
  /*
  ** Plugins to load before mounting the App
  */
  plugins: [
    // { src: '@/plugins/HTTP', ssr: true },
    { src: '@/plugins/Element', ssr: true },
    { src: '@/static/utils/Common', ssr: true },
    // { src: '@/plugins/MavonEditor', srr: false },
  ],
  /*
  ** Nuxt.js dev-modules
  */
  buildModules: [
  ],
  /*
  ** Nuxt.js modules
  */
  modules: [
    // Doc: https://axios.nuxtjs.org/usage
  ],
  /*
  ** Build configuration
  */
  build: {
    transpile: [/^element-ui/],
    /*
    ** You can extend webpack config here
    */
    extend(config, ctx) {
    }
  }
}
